const demo = {
  id: 1,
  package_id: 1,
  freight_id: 1,
  freight_company: '呵呵',
  payment_type: 1,
  service_channel: 1,
  status: 1,
  create_time: '2018-11-21T08:26:20.000Z'
}
module.exports = function(req, res) {
  const cur_page = req.body.cur_page || 1
  let r = cur_page * 10 + 1
  const list = []
  for (let i = r; i < r + 10; i++) {
    demo.id = i
    demo.package_id = i
    demo.freight_id = 'hehe_' + i
    demo.freight_company = 'hehe' + i
    demo.payment_type = i % 2 + 1
    demo.service_channel = i % 3 + 1
    demo.status = i % 5 + 1
    demo.create_time = '2018-11-21T08:26:20.000Z'
    list.push(JSON.parse(JSON.stringify(demo)))
  }
  return {
    code: 200,
    msg: 'ok',
    total: 200,
    cur_page,
    list
  }
}
